<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>最新电影</title>

    <!-- BOOTSTRAP STYLES-->
    <link href="${pageContext.request.contextPath}/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="${pageContext.request.contextPath}/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES -->
    <link href="${pageContext.request.contextPath}/assets/css/prettyPhoto.css" rel="stylesheet" />
    <!--CUSTOM BASIC STYLES-->
    <link href="${pageContext.request.contextPath}/assets/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="${pageContext.request.contextPath}/assets/css/custom.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
    <link href='http://fonts.useso.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">影院名称</a>
            </div>

            <div class="header-right">

              <a href="message-task.html" class="btn btn-info" title="New Message"><b>30 </b><i class="fa fa-envelope-o fa-2x"></i></a>
                <a href="message-task.html" class="btn btn-primary" title="New Task"><b>40 </b><i class="fa fa-bars fa-2x"></i></a>
                <a href="login.html" class="btn btn-danger" title="Logout"><i class="fa fa-exclamation-circle fa-2x"></i></a>


            </div>
        </nav>
        <!-- /. NAV TOP  -->
       <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
                    <li>
                        <div class="user-img-div">
                            <img src="${madmin.img }" class="img-thumbnail" />

                            <div class="inner-text">
                                		${madmin.name }
                            
                            </div>
                        </div>

                    </li>


                    <li>
                        <a href="/movie/MovieAdmin/index"><i class="fa fa-dashboard "></i>首页</a>
                    </li>
                   
                     <li>
                        <a href="#"><i class="fa fa-yelp "></i>座位管理<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <li>
                                <a href="invoice.html"><i class="fa fa-coffee"></i>添加座位</a>
                            </li>
                           
                            <li>
                                <a href="invoice.html"><i class="fa fa-coffee"></i>设置座位</a>
                            </li>
                        </ul>
                    </li>
                  
                      <li>
                        <a  class="active-menu" href="/movie/MovieAdmin/showMovie?cinemaId=${madmin.cinemaId }"><i class="fa fa-anchor "></i>最新电影</a>
                    </li>
                   
                    <li>
                        <a href="blank.html"><i class="fa fa-square-o "></i>更改影院环境</a>
                    </li>
                      <li>
                     <a  href="/movie/MovieAdmin/book"><i class="fa fa-send "></i>查看预定形况</a>
                    </li>
                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper">
            <div id="page-inner">
                <div class="row">
                    <div class="col-md-12">
                        <h1 class="page-head-line">上映电影</h1>
                        <h1 class="page-subhead-line">点击➕添加到影院电影 </h1>

                    </div>
                </div>
                <!-- /. ROW  -->
             <c:forEach items="${movies }"  varStatus="v" step="3">
                <div class="row " >
                  <c:forEach  items="${movies }" var="a" begin="${v.index }" end="${v.index+2 }">   
                  
                 
                <div class="col-md-4 ">
				
                    <div class="portfolio-item" >


                        <img src="${a.mimg }" style="height:300px;width: 352px; vertical-align:middle;" alt="暂无图片" />
                        <div class="overlay">
                            <p>
                                <span>
                                ${a.mname }
                                </span>
                              </p>
                                <p>
                                ${a.mtype }
                             </p>
                             
                             	  <a class="preview btn btn-info " href="/movie/MovieAdmin/delshowMovie?movieId=${a.movieId }&cinemaId=${madmin.cinemaId}"><i class="fa fa-plus fa-2x">撤销电影</i></a>
                       
                          
                            
                              <a class="preview btn btn-info " href="/movie/MovieAdmin/dealshowMovie?movieId=${a.movieId }&cinemaId=${madmin.cinemaId}"><i class="fa fa-plus fa-2x">上映电影</i></a>
                        </div>
                    </div>
                </div>
               
             
     
     
               </c:forEach>
            </div>

     		 </c:forEach>
               
               

            </div>
            <!-- /. PAGE INNER  -->
        </div>
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <div id="footer-sec">
        Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
    </div>
    <!-- /. FOOTER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/jquery-1.10.2.js"></script>
    <!-- BOOTSTRAP SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/bootstrap.js"></script>
     <!-- PAGE LEVEL SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/jquery.prettyPhoto.js"></script>
    <script src="${pageContext.request.contextPath}/assets/js/jquery.mixitup.min.js"></script>
    <!-- METISMENU SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/jquery.metisMenu.js"></script>
    <!-- CUSTOM SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/custom.js"></script>
     <!-- CUSTOM Gallery Call SCRIPTS -->
    <script src="${pageContext.request.contextPath}/assets/js/galleryCustom.js"></script>
</body>
</html>
